from db.dbUtils import MysqlPool


def get_record(sql):
    with MysqlPool() as pool:
        c = pool.cursor
        c.execute(sql)
        return c.fetchall()


def fix_record_class(sql):
    with MysqlPool() as pool:
        c = pool.cursor
        c.execute(sql)
        pool.conn.commit()

